vr2-5-01.wrl
[ VRML source code ]
#VRML V2.0 utf8
#vr2-5-01.wrl
Transform {
translation 0 1 0
children Shape {
appearance Appearance {
material Material {
diffuseColor 1 1 0
}
}
geometry Box { size 3 0.2 1 }
}
}
Group {
children [
DEF Timer TimeSensor {
cycleInterval 10.0
loop TRUE
},
DEF Move PositionInterpolator {
key [0.0, 0.15, 0.3, 0.45, 0.6, 0.75, 0.9 1.0]
keyValue [
1 0 0,
0.5 0.5 0,
0 1 0,
-0.5 0.5 0,
-1 0 0,
-0.5 -0.5 0,
0 -1 0,
0.5 -0.5 0
]
},
DEF Leaf Transform {
children Shape {
appearance Appearance {
material Material {
diffuseColor 0 1 0
}
}
geometry Cone { }
}
}
]
}
ROUTE Timer.fraction_changed TO Move.set_fraction
ROUTE Move.value_changed TO Leaf.set_translation